package com.tul.exercise.base.operator.egs;


import org.junit.jupiter.api.Test;

import java.util.Random;

import static com.tul.exercise.base.utils.Print.print;

/**
 * @Description 《java编程思想》第3章 示例6：
 *
 *  逻辑运算符
 *
 **/
public class eg_05_Bool {

    @Test
    public void test() {
        Random rand = new Random(49);

        int i = rand.nextInt(100);
        int j = rand.nextInt(100);

        print("i = " + i);
        print("j = " + j);
        print("i > j is " + ( i > j));

        print("i < j is " + ( i < j));
        print("i >= j is " + ( i >= j));
        print("i <= j is " + ( i <= j));
        print("i == j is " + ( i == j));
        print("i != j is " + ( i != j));
    }
}
